From: Dovecot Maintainers Date: Thu, 8 Oct 2026 19:57:37 +0000 (-0400) Subject: bit-test-array-fixes X-Git-Tag: archive/raspbian/1%2.4.5+dfsg1-4+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7a6eed2a487e6fddd0f2c928f95dfbde16ded112;p=dovecot.git bit-test-array-fixes =================================================================== Gbp-Pq: Name 32-bit-test-array-fixes.patch --- diff --git a/src/lib/test-array.c b/src/lib/test-array.c index d6bebba..2cf90de 100644 --- a/src/lib/test-array.c +++ b/src/lib/test-array.c @@ -461,7 +461,14 @@ enum fatal_test_state fatal_array(unsigned int stage) t_array_init(&arr, 2); array_push_back(&arr, value); + /* this test triggers different failures on 32- versus + * 64-bit architectures. It's a failure in both cases, + * so we just handle it... */ +#if SIZEOF_VOID_P == 4 + test_expect_fatal_string("memory allocation overflow"); +#else test_expect_fatal_string("Buffer write out of range"); +#endif /* this is supposed to assert-crash before it even attempts to access value */ array_append(&arr, value, UINT_MAX);